package cn.droidlover.xdroidmvp.mvp;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

/**
 * Created by jack on 2019/4/29.
 */

public interface IView<P> {

    Context getContext();

    void bindUI(View rootView);

    void bindEvent();

    int getLayoutId();

    void initData(Bundle savedInstanceState);

    int getOptionsMenuId();

    boolean useEventBus();

    P newP();

    void onRequestFinish();

    void showProgressDialog();

    void showProgressDialog(String message);

    void hideProgressDialog();

}
